package com.example.myapplication.config;

import java.util.HashMap;
import java.util.Map;

public class RfidConstant {

    public static final String A = "00001";
    public static final String B = "00010";
    public static final String C = "00011";
    public static final String D = "00100";
    public static final String E = "00101";
    public static final String F = "00110";
    public static final String G = "00111";
    public static final String H = "01000";
    public static final String I = "01001";
    public static final String J = "01010";
    public static final String K = "01011";
    public static final String L = "01100";
    public static final String M = "01101";
    public static final String N = "01110";
    public static final String O = "01111";
    public static final String P = "10000";
    public static final String Q = "10001";
    public static final String R = "10010";
    public static final String S = "10011";
    public static final String T = "10100";
    public static final String U = "10101";
    public static final String V = "10110";
    public static final String W = "10111";
    public static final String X = "11000";
    public static final String Y = "11001";
    public static final String Z = "11010";

    public static final String num0 = "0000";
    public static final String num1 = "0001";
    public static final String num2 = "0010";
    public static final String num3 = "0011";
    public static final String num4 = "0100";
    public static final String num5 = "0101";
    public static final String num6 = "0110";
    public static final String num7 = "0111";
    public static final String num8 = "1000";
    public static final String num9 = "1001";

    public static final String A7 = "1000001";
    public static final String B7 = "1000010";
    public static final String C7 = "1000011";
    public static final String D7 = "1000100";
    public static final String E7 = "1000101";
    public static final String F7 = "1000110";
    public static final String G7 = "1000111";
    public static final String H7 = "1001000";
    public static final String I7 = "1001001";
    public static final String J7 = "1001010";
    public static final String K7 = "1001011";
    public static final String L7 = "1001100";
    public static final String M7 = "1001101";
    public static final String N7 = "1001110";
    public static final String O7 = "1001111";
    public static final String P7 = "1010000";
    public static final String Q7 = "1010001";
    public static final String R7 = "1010010";
    public static final String S7 = "1010011";
    public static final String T7 = "1010100";
    public static final String U7 = "1010101";
    public static final String V7 = "1010110";
    public static final String W7 = "1010111";
    public static final String X7 = "1011000";
    public static final String Y7 = "1011001";
    public static final String Z7 = "1011010";

    public static final String a7 = "1100001";
    public static final String b7 = "1100010";
    public static final String c7 = "1100011";
    public static final String d7 = "1100100";
    public static final String e7 = "1100101";
    public static final String f7 = "1100110";
    public static final String g7 = "1100111";
    public static final String h7 = "1101000";
    public static final String i7 = "1101001";
    public static final String j7 = "1101010";
    public static final String k7 = "1101011";
    public static final String l7 = "1101100";
    public static final String m7 = "1101101";
    public static final String n7 = "1101110";
    public static final String o7 = "1101111";
    public static final String p7 = "1110000";
    public static final String q7 = "1110001";
    public static final String r7 = "1110010";
    public static final String s7 = "1110011";
    public static final String t7 = "1110100";
    public static final String u7 = "1110101";
    public static final String v7 = "1110110";
    public static final String w7 = "1110111";
    public static final String x7 = "1111000";
    public static final String y7 = "1111001";
    public static final String z7 = "1111010";

    public static final String code_point = "0101110";//句号 点
    public static final String code_slash = "0101111";// /反斜线
    public static final String code_maohao = "0101010";// :
    public static final String code_fenhao = "0101011";// ;
    public static final String code_wenhao = "0101111";// ?
    public static final String code_aite = "1000000";// @
    public static final String code_plus = "0101011";// +
    public static final String code_reduce = "0101101";// -
    public static final String code_asterisk = "0101010";// *

    public static Map<String,String> map6 = new HashMap<String, String>();
    public static Map<String,String> map6Value = new HashMap<String, String>();

    public static Map<String,String> map5 = new HashMap<String, String>();
    public static Map<String,String> map5Value = new HashMap<String, String>();

    public static Map<String,String> map4 = new HashMap<String, String>();
    public static Map<String,String> map4Value = new HashMap<String, String>();

    public static Map<String,String> map7 = new HashMap<String, String>();
    public static Map<String,String> map7Value = new HashMap<String, String>();

    static{
        map6.put("A","0" + A);
        map6.put("B","0" + B);
        map6.put("C","0" + C);
        map6.put("D","0" + D);
        map6.put("E","0" + E);
        map6.put("F","0" + F);
        map6.put("G","0" + G);
        map6.put("H","0" + H);
        map6.put("I","0" + I);
        map6.put("J","0" + J);
        map6.put("K","0" + K);
        map6.put("L","0" + L);
        map6.put("M","0" + M);
        map6.put("N","0" + N);
        map6.put("O","0" + O);
        map6.put("P","0" + P);
        map6.put("Q","0" + Q);
        map6.put("R","0" + R);
        map6.put("S","0" + S);
        map6.put("T","0" + T);
        map6.put("U","0" + U);
        map6.put("V","0" + V);
        map6.put("W","0" + W);
        map6.put("X","0" + X);
        map6.put("Y","0" + Y);
        map6.put("Z","0" + Z);
        map6.put("-","101101");
        map6.put(":","101110");
        map6.put("/","111010");
        map6.put("0","11" + num0);
        map6.put("1","11" + num1);
        map6.put("2","11" + num2);
        map6.put("3","11" + num3);
        map6.put("4","11" + num4);
        map6.put("5","11" + num5);
        map6.put("6","11" + num6);
        map6.put("7","11" + num7);
        map6.put("8","11" + num8);
        map6.put("9","11" + num9);



        map6Value.put("0" + A,"A");
        map6Value.put("0" + B,"B");
        map6Value.put("0" + C,"C");
        map6Value.put("0" + D,"D");
        map6Value.put("0" + E,"E");
        map6Value.put("0" + F,"F");
        map6Value.put("0" + G,"G");
        map6Value.put("0" + H,"H");
        map6Value.put("0" + I,"I");
        map6Value.put("0" + J,"J");
        map6Value.put("0" + K,"K");
        map6Value.put("0" + L,"L");
        map6Value.put("0" + M,"M");
        map6Value.put("0" + N,"N");
        map6Value.put("0" + O,"O");
        map6Value.put("0" + P,"P");
        map6Value.put("0" + Q,"Q");
        map6Value.put("0" + R,"R");
        map6Value.put("0" + S,"S");
        map6Value.put("0" + T,"T");
        map6Value.put("0" + U,"U");
        map6Value.put("0" + V,"V");
        map6Value.put("0" + W,"W");
        map6Value.put("0" + X,"X");
        map6Value.put("0" + Y,"Y");
        map6Value.put("0" + Z,"Z");
        map6Value.put("101101","-");
        map6Value.put("101110",":");
        map6Value.put("111010","/");
        map6Value.put("11" + num0,"0");
        map6Value.put("11" + num1,"1");
        map6Value.put("11" + num2,"2");
        map6Value.put("11" + num3,"3");
        map6Value.put("11" + num4,"4");
        map6Value.put("11" + num5,"5");
        map6Value.put("11" + num6,"6");
        map6Value.put("11" + num7,"7");
        map6Value.put("11" + num8,"8");
        map6Value.put("11" + num9,"9");

        map5.put("A",A);
        map5.put("B",B);
        map5.put("C",C);
        map5.put("D",D);
        map5.put("E",E);
        map5.put("F",F);
        map5.put("G",G);
        map5.put("H",H);
        map5.put("I",I);
        map5.put("J",J);
        map5.put("K",K);
        map5.put("L",L);
        map5.put("M",M);
        map5.put("N",N);
        map5.put("O",O);
        map5.put("P",P);
        map5.put("Q",Q);
        map5.put("R",R);
        map5.put("S",S);
        map5.put("T",T);
        map5.put("U",U);
        map5.put("V",V);
        map5.put("W",W);
        map5.put("X",X);
        map5.put("Y",Y);
        map5.put("Z",Z);

        map5Value.put(A,"A");
        map5Value.put(B,"B");
        map5Value.put(C,"C");
        map5Value.put(D,"D");
        map5Value.put(E,"E");
        map5Value.put(F,"F");
        map5Value.put(G,"G");
        map5Value.put(H,"H");
        map5Value.put(I,"I");
        map5Value.put(J,"J");
        map5Value.put(K,"K");
        map5Value.put(L,"L");
        map5Value.put(M,"M");
        map5Value.put(N,"N");
        map5Value.put(O,"O");
        map5Value.put(P,"P");
        map5Value.put(Q,"Q");
        map5Value.put(R,"R");
        map5Value.put(S,"S");
        map5Value.put(T,"T");
        map5Value.put(U,"U");
        map5Value.put(V,"V");
        map5Value.put(W,"W");
        map5Value.put(X,"X");
        map5Value.put(Y,"Y");
        map5Value.put(Z,"Z");

        map4.put("0",num0);
        map4.put("1",num1);
        map4.put("2",num2);
        map4.put("3",num3);
        map4.put("4",num4);
        map4.put("5",num5);
        map4.put("6",num6);
        map4.put("7",num7);
        map4.put("8",num8);
        map4.put("9",num9);

        map4Value.put(num0,"0");
        map4Value.put(num1,"1");
        map4Value.put(num2,"2");
        map4Value.put(num3,"3");
        map4Value.put(num4,"4");
        map4Value.put(num5,"5");
        map4Value.put(num6,"6");
        map4Value.put(num7,"7");
        map4Value.put(num8,"8");
        map4Value.put(num9,"9");


        map7.put("0", "011" + num0);
        map7.put("1", "011" + num1);
        map7.put("2", "011" + num2);
        map7.put("3", "011" + num3);
        map7.put("4", "011" + num4);
        map7.put("5", "011" + num5);
        map7.put("6", "011" + num6);
        map7.put("7", "011" + num7);
        map7.put("8", "011" + num8);
        map7.put("9", "011" + num9);
        map7.put("A", A7);
        map7.put("B", B7);
        map7.put("C", C7);
        map7.put("D", D7);
        map7.put("E", E7);
        map7.put("F", F7);
        map7.put("G", G7);
        map7.put("H", H7);
        map7.put("I", I7);
        map7.put("J", J7);
        map7.put("K", K7);
        map7.put("L", L7);
        map7.put("M", M7);
        map7.put("N", N7);
        map7.put("O", O7);
        map7.put("P", P7);
        map7.put("Q", Q7);
        map7.put("R", R7);
        map7.put("S", S7);
        map7.put("T", T7);
        map7.put("U", U7);
        map7.put("V", V7);
        map7.put("W", W7);
        map7.put("X", X7);
        map7.put("Y", Y7);
        map7.put("Z", Z7);
        map7.put("a", a7);
        map7.put("b", b7);
        map7.put("c", c7);
        map7.put("d", d7);
        map7.put("e", e7);
        map7.put("f", f7);
        map7.put("g", g7);
        map7.put("h", h7);
        map7.put("i", i7);
        map7.put("j", j7);
        map7.put("k", k7);
        map7.put("l", l7);
        map7.put("m", m7);
        map7.put("n", n7);
        map7.put("o", o7);
        map7.put("p", p7);
        map7.put("q", q7);
        map7.put("r", r7);
        map7.put("s", s7);
        map7.put("t", t7);
        map7.put("u", u7);
        map7.put("v", v7);
        map7.put("w", w7);
        map7.put("x", x7);
        map7.put("y", y7);
        map7.put("z", z7);
        map7.put(".", code_point);
        map7.put("/", code_slash );
        map7.put(":", code_maohao);
        map7.put(";", code_fenhao);
        map7.put("?", code_wenhao);
        map7.put("@", code_aite);
        map7.put("+", code_plus);
        map7.put("-", code_reduce);
        map7.put("*", code_asterisk);


        map7Value.put("011" + num0, "0");
        map7Value.put("011" + num1, "1");
        map7Value.put("011" + num2, "2");
        map7Value.put("011" + num3, "3");
        map7Value.put("011" + num4, "4");
        map7Value.put("011" + num5, "5");
        map7Value.put("011" + num6, "6");
        map7Value.put("011" + num7, "7");
        map7Value.put("011" + num8, "8");
        map7Value.put("011" + num9, "9");
        map7Value.put(A7, "A");
        map7Value.put(B7, "B");
        map7Value.put(C7, "C");
        map7Value.put(D7, "D");
        map7Value.put(E7, "E");
        map7Value.put(F7, "F");
        map7Value.put(G7, "G");
        map7Value.put(H7, "H");
        map7Value.put(I7, "I");
        map7Value.put(J7, "J");
        map7Value.put(K7, "K");
        map7Value.put(L7, "L");
        map7Value.put(M7, "M");
        map7Value.put(N7, "N");
        map7Value.put(O7, "O");
        map7Value.put(P7, "P");
        map7Value.put(Q7, "Q");
        map7Value.put(R7, "R");
        map7Value.put(S7, "S");
        map7Value.put(T7, "T");
        map7Value.put(U7, "U");
        map7Value.put(V7, "V");
        map7Value.put(W7, "W");
        map7Value.put(X7, "X");
        map7Value.put(Y7, "Y");
        map7Value.put(Z7, "Z");
        map7Value.put(a7, "a");
        map7Value.put(b7, "b");
        map7Value.put(c7, "c");
        map7Value.put(d7, "d");
        map7Value.put(e7, "e");
        map7Value.put(f7, "f");
        map7Value.put(g7, "g");
        map7Value.put(h7, "h");
        map7Value.put(i7, "i");
        map7Value.put(j7, "j");
        map7Value.put(k7, "k");
        map7Value.put(l7, "l");
        map7Value.put(m7, "m");
        map7Value.put(n7, "n");
        map7Value.put(o7, "o");
        map7Value.put(p7, "p");
        map7Value.put(q7, "q");
        map7Value.put(r7, "r");
        map7Value.put(s7, "s");
        map7Value.put(t7, "t");
        map7Value.put(u7, "u");
        map7Value.put(v7, "v");
        map7Value.put(w7, "w");
        map7Value.put(x7, "x");
        map7Value.put(y7, "y");
        map7Value.put(z7, "z");
        map7Value.put(code_point, ".");
        map7Value.put(code_slash, "/");
        map7Value.put(code_maohao, ":");
        map7Value.put(code_fenhao, ";");
        map7Value.put(code_wenhao, "?");
        map7Value.put(code_aite, "@");
        map7Value.put(code_plus, "+");
        map7Value.put(code_reduce, "-");
        map7Value.put(code_asterisk, "*");
    }

}
